<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<sj:head locale="es" jqueryui="true" jquerytheme="cupertino" />
<link rel="stylesheet" type="text/css" href="estilo/style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Solicitud cambio de servicio cliente corporativo...</title>
<script language="JavaScript" type="text/javascript">	
   function maximizar() { 
		self.moveTo(0,0); 
		self.resizeTo(screen.availWidth,screen.availHeight); 
	} 
   function agregarDigi(k){
		 var tecla = 0;
		 if(typeof (k.charCode) == 'undefined' ){
			 tecla = k.keyCode;
		 }else{
			 tecla = k.charCode;
		 }
		 if(tecla==0)
			 return true;

		  var loqhay=document.getElementById('contrato').value;
			if(loqhay.length<=4 ){
					 if (tecla ==67 || tecla ==99 ){
					    document.getElementById('contrato').value="C-0000";
				     } 
					 if (tecla ==86 || tecla ==118 ){
							document.getElementById('contrato').value="V-0000";
				     } 
					 /*
					 if (tecla ==80 || tecla ==112 ){
						    document.getElementById('contrato').value="P-0000";
					 } 
					 */
				   return false;     
		     }else if (( tecla < 48 || tecla > 57 ) ){
		    	   return false;
		    }else{
		    	return true; 
		    }
	} 	
</script>
</head>
<body onload="maximizar()" style="background-color: #f3f5f6" >
  <div class='logo_sia'><img src="images/logo.png" /></div>
  <div class="barra_tit_corp" align='center'>Solictud cambio de servicio corporativo </div>
    <s:form id="form"  theme="simple"  action='cargar_frm_sol_upg' >
        <table border='0' >
             <tr><td>Contrato</td><td></td></tr>
             <tr>
                 <td><s:textfield size='20' id="contrato" name="solicitud.contrato" value=""  onkeypress="return agregarDigi(event);"  maxlength='10' /></td><td><sj:submit  id="filtrar"  targets="contenido"  indicator="indicatorc" button="true" type='image' src="images/busq.png" cssClass="boton_sia1" /> <img id="indicatorc" src="images/ajax-loader3.gif" alt="Cargando..." style="display: none" /></td>
             </tr>
        </table>      
    </s:form>
    <sj:div id='contenido' indicator="indicatorc2" >
       <center><img id="indicatorc2" src="images/ajax-loader3.gif" alt="Cargando..." style="display: none" /></center>
    </sj:div>	
</body>
</html>